﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmartRoute.Data;

namespace SmartRoute.Analytics
{
    [Serializable]
    //the bus solution is a decoded gene, contains the routes and information about time and passengers
    public class BusSolution
    {
        //list of routes, one for each bus
        List<Route> routes;

        public List<Route> Routes
        {
            get { return routes; }
            set { routes = value; }
        }

        //list of passengers on each bus
        List<int> passengers;

        public List<int> Passengers
        {
            get { return passengers; }
            set { passengers = value; }
        }

        //first leg of the trip they do not carry passengers
        List<TimeSpan> firstLegWithoutPassengersDistance;

        public List<TimeSpan> FirstLegWithoutPassengersDistance
        {
            get { return firstLegWithoutPassengersDistance; }
            set { firstLegWithoutPassengersDistance = value; }
        }

        //null constructor
        public BusSolution()
        {

        }
    }
    
}
